Quản lý nhân sự công ty bằng c# _ full source code
60.428 lượt xem;
- Form1.cs
- QuanLyNhanSu /
- project /
1 //Downloaded from
2 //Visual C# Kicks - http://vckicks.110mb.com/
3 using System;
4 using System.Collections.Generic;
5 using System.ComponentModel;
6 using System.Data;
7 using System.Drawing;
8 using System.Text;
9 using System.Windows.Forms;
10
11 namespace QuanLyNhanSu
12 {
13 public partial class Form1 : TransDialog
14 {
15
16 public Form1()
17 {
18 InitializeComponent();
19
20
21
22 //Needed to make the custom shaped Form
23 this.FormBorderStyle = FormBorderStyle.None;
24 this.Width = this.BackgroundImage.Width;
25 this.Height = this.BackgroundImage.Height;
26
27 //Slow version
28 //this.Region = BitmapToRegion.getRegion((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
29
30 //Fast version
31 this.Region = BitmapToRegion.getRegionFast((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
32 }
33
34 Point lastPoint;
35 private void Form1_MouseDown(object sender, MouseEventArgs e)
36 {
37 lastPoint = new Point(e.X, e.Y);
38 }
39
40 private void Form1_MouseMove(object sender, MouseEventArgs e)
41 {
42 if (e.Button == MouseButtons.Left)
43 {
44 this.Left += e.X - lastPoint.X;
45 this.Top += e.Y - lastPoint.Y;
46 }
47 }
48
49 private void exotToolStripMenuItem_Click(object sender, EventArgs e)
50 {
51 this.Close();
52 }
53
54 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
55 {
56 //System.Diagnostics.Process.Start("http://vckicks.110mb.com");
57 }
58
59 private void Form1_Load(object sender, EventArgs e)
60 {
61 timer1.Interval = 5000;
62 timer1.Start();
63 }
64
65 private void timer1_Tick(object sender, EventArgs e)
66 {
67 timer1.Stop();
68 this.Close();
69
70 }
71 }
72 }
2 //Visual C# Kicks - http://vckicks.110mb.com/
3 using System;
4 using System.Collections.Generic;
5 using System.ComponentModel;
6 using System.Data;
7 using System.Drawing;
8 using System.Text;
9 using System.Windows.Forms;
10
11 namespace QuanLyNhanSu
12 {
13 public partial class Form1 : TransDialog
14 {
15
16 public Form1()
17 {
18 InitializeComponent();
19
20
21
22 //Needed to make the custom shaped Form
23 this.FormBorderStyle = FormBorderStyle.None;
24 this.Width = this.BackgroundImage.Width;
25 this.Height = this.BackgroundImage.Height;
26
27 //Slow version
28 //this.Region = BitmapToRegion.getRegion((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
29
30 //Fast version
31 this.Region = BitmapToRegion.getRegionFast((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
32 }
33
34 Point lastPoint;
35 private void Form1_MouseDown(object sender, MouseEventArgs e)
36 {
37 lastPoint = new Point(e.X, e.Y);
38 }
39
40 private void Form1_MouseMove(object sender, MouseEventArgs e)
41 {
42 if (e.Button == MouseButtons.Left)
43 {
44 this.Left += e.X - lastPoint.X;
45 this.Top += e.Y - lastPoint.Y;
46 }
47 }
48
49 private void exotToolStripMenuItem_Click(object sender, EventArgs e)
50 {
51 this.Close();
52 }
53
54 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
55 {
56 //System.Diagnostics.Process.Start("http://vckicks.110mb.com");
57 }
58
59 private void Form1_Load(object sender, EventArgs e)
60 {
61 timer1.Interval = 5000;
62 timer1.Start();
63 }
64
65 private void timer1_Tick(object sender, EventArgs e)
66 {
67 timer1.Stop();
68 this.Close();
69
70 }
71 }
72 }